package agent

import (
	"context"

	"gitee.com/liuxuezhan/ar-platform/admin-api/internal/svc"
	"gitee.com/liuxuezhan/ar-platform/admin-api/internal/types"

	"github.com/zeromicro/go-zero/core/logx"
)

type GetYesterdayUserRebatesLeveOrderMapLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

// 昨日会员返佣--排序
func NewGetYesterdayUserRebatesLeveOrderMapLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetYesterdayUserRebatesLeveOrderMapLogic {
	return &GetYesterdayUserRebatesLeveOrderMapLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *GetYesterdayUserRebatesLeveOrderMapLogic) GetYesterdayUserRebatesLeveOrderMap() (resp *types.YesterdayUserRebatesLeveOrderMapResp, err error) {

	_list := []types.YesterdayUserRebatesLeveOrderMapOne{
		{
			Order:       "team_head_count asc",
			DisplayName: "团队人数升序",
		},
		{
			Order:       "team_head_count desc",
			DisplayName: "团队人数降序",
		},
		{
			Order:       "team_recharge_amount asc",
			DisplayName: "充值金额升序",
		},
		{
			Order:       "team_recharge_amount desc",
			DisplayName: "充值金额降序",
		},
		{
			Order:       "game_count asc",
			DisplayName: "游戏金额升序",
		},
		{
			Order:       "game_count desc",
			DisplayName: "游戏金额降序",
		},
		{
			Order:       "computational_rebates_amount asc",
			DisplayName: "计算佣金升序",
		},
		{
			Order:       "computational_rebates_amount desc",
			DisplayName: "计算佣金降序",
		},
		{
			Order:       "provide_rebates_amount asc",
			DisplayName: "派发佣金升序",
		},
		{
			Order:       "provide_rebates_amount desc",
			DisplayName: "派发佣金降序",
		},
	}

	resp = &types.YesterdayUserRebatesLeveOrderMapResp{
		List: _list,
	}

	return
}
